import moment from 'moment'
// 快速入职模板配置
export const quickInductionThead = [
  {
    title: '模板名称',
    key: 'name',
    minWidth: 120
  },
  {
    title: '适配合作类型',
    key: 'typeName',
    minWidth: 120
  },
  {
    title: '状态',
    key: 'enabled',
    minWidth: 120,
    render: (h, params) => {
      const text = params.row.enabled ? '已启用' : '已禁用'
      return h('span', text)
    }
  },
  {
    title: '创建时间',
    key: 'createdOn',
    minWidth: 120,
    render: (h, params) => {
      const text = params.row.createdOn ? moment(params.row.createdOn).format('YYYY-MM-DD HH:mm') : ''
      return h('span', text)
    }
  },
  {
    title: '创建人',
    key: 'createdByName',
    minWidth: 120,
  },
  {
    title: '操作',
    key: 'action',
    minWidth: 160,
    alain: 'center',
    slot: 'action',
    fixed: 'right',
  }
]
